package jhunter.loader;

import java.net.URL;
import java.net.URLClassLoader;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import schema.Environment;

public class JHunterClassLoader extends URLClassLoader {

	private Logger log = LoggerFactory.getLogger(this.getClass());
	
	public JHunterClassLoader(URL url) {
		super(new URL[] { url }, Environment.getDefaultClassLoader());
	}
	
	@Override
	public Class<?> loadClass(String name) throws ClassNotFoundException {
		Class<?> c2 = super.loadClass(name);
//		System.out.println(c2);
		log.debug("load class {}", c2);
		return c2;
	}

}
